<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>管理员登录</title>
		<script language="javaScript" type="text/javascript">
	function checkSubmit() {
		var flag = true;
		var mingObj = document.getElementById("ming");
		if (mingObj.value.length == 0) {
			showMsg("mingSpan", "用户名不能为空！");
			flag = false;
			mingObj.style.backgroundColor = "#CCCCCC";
		} else {
			showMsg("mingSpan", "");
			mingObj.style.backgroundColor = "#ffffff";
		}
		var passwordObj = document.getElementById("password");
		if (passwordObj.value.length == 0) {
			showMsg("passwordSpan", "密码不能为空！");
			flag = false;
			passwordObj.style.backgroundColor = "#CCCCCC";
		} else {
			showMsg("passwordSpan", "");
			passwordObj.style.backgroundColor = "#ffffff";
		}
		return flag;
	}

	function showMsg(id, msg) {
		var obj = document.getElementById(id);
		if (msg == "") {
			obj.innerHTML = "";
		} else {
			obj.innerHTML = "&nbsp;<img src='${CONTEXT_ROOT}/images/error.gif' align='middle'/>&nbsp;"
					+ msg;
		}
	}
</script>
		<style type="text/css">
-->
body {
	font-size: 16px;
	color: #ffffff;
	margin: 0;
	padding: 0;
	background-color: #556b2f;
	margin: 0;
}

.ta {
	bordercolor: purple;
	margin-top: 170px;
}

.ta_1 {
	font-family: 华文行楷;
	font-size: 24px;
}

.td_1 {
	font-size: 14px
}
-->
</style>
<link rel="stylesheet" type="text/css" href="css/commonBookTest.css">
	</head>

	<body>

		<center>
			<form name="form1" method="post"
				action="${CONTEXT_ROOT }/AdminLoginServlet" id="form1"
				onsubmit="return checkSubmit();">

				<table border="1" width="600px" class="ta">
					<tr>
						<td align="center" colspan="2" height="50px" width="600px"
							class="ta_1">
							流浪书客管理系统登陆
						</td>
					</tr>
					<tr>
						<td colspan="2" class="td_1" height="40px">
							${message==null?"请您输入用户名、密码":message}
						</td>
					</tr>
					<tr>
						<td align="right" height="40px" width="150x">
							用户名&nbsp;&nbsp;
						</td>
						<td align="left" width="450px">
							&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
							<input type="text" name="adminUsername" id="ming" size="28" />
							<span id="mingSpan"></span>
						</td>
					</tr>
					<tr>
						<td align="right" height="40px">
							密码&nbsp;&nbsp;
						</td>
						<td align="left">
							&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
							<input type="password" name="adminPassword" id="password"
								size="30" />
							<span id="passwordSpan"></span>
						</td>
					</tr>
					<tr>
						<td height="40px" align="center" colspan="2">
							<input type="submit" name="submit" value="登陸" />
							&nbsp;&nbsp;&nbsp;&nbsp;
							<input type="reset" name="reset" value="重置" />
							&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
						</td>
					</tr>
				</table>
			</form>
		</center>
	</body>
</html>
